// get the client
const mysql = require('mysql2');

// create the connection to database
const connection = mysql.createConnection({
  host: '8.141.8.20',
  user: 'theword',
  database: 'webdata',
  port:'3306',
  password:'ddd.2023.word'
});

// connection.query(
//     'SELECT * FROM `User`',
//     function(err, results, fields) {
//       console.log(results); // results contains rows returned by server
//       console.log(fields); // fields contains extra meta data about results, if available
//     }
//   );
